﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="AudiWiki.a1details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
    <p>
        Audi has many different models in every range. This website let you add the 
        model you want with all the details, such as: Model name, Model year, Color, 
        Engine and any other information you would like to add.</p>
    <p>
    ModelName <asp:TextBox ID="tb_ModelName" runat="server"></asp:TextBox>
    <br />
    <br />
    ModelYear&nbsp;&nbsp; <asp:TextBox ID="tb_ModelYear" runat="server"></asp:TextBox>
    <br />
    <br />
    Color&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="tb_Color" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    <br />
    Engine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="tb_Engine" runat="server"></asp:TextBox>
    <br />
    <br />
    Info&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="tb_Info" runat="server"></asp:TextBox>
    </p>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" Text="Add New Audi" />
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</p>
    <p>
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            DataSourceID="AudiDB" AutoGenerateColumns="False" DataKeyNames="ID">
            <Columns>
                <asp:BoundField DataField="ModelName" HeaderText="ModelName" 
                    SortExpression="ModelName" />
                <asp:BoundField DataField="ModelYear" HeaderText="ModelYear" 
                    SortExpression="ModelYear" />
                <asp:BoundField DataField="Color" HeaderText="Color" SortExpression="Color" />
                <asp:BoundField DataField="Engine" HeaderText="Engine" 
                    SortExpression="Engine" />
                <asp:BoundField DataField="Info" HeaderText="Info" SortExpression="Info" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="AudiDB" runat="server" 
            ConnectionString="<%$ ConnectionStrings:AudiConn %>" 
            ProviderName="<%$ ConnectionStrings:AudiConn.ProviderName %>" 
            SelectCommand="SELECT * FROM [Ranges] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
